" setlocal tabstop=2 shiftwidth=2 sts=2

inoremap <buffer> <M-f> <esc>a(<++>) => {}<esc>i<cr><esc>ko<esc>ki<C-R>=Search_word()<CR>

" typescript 编译
" npm i -g typescript 
" npm i -g ts-node

" 编译 typescript 为 javascript
function TSC()
    :sp
    :res -5
    :term tsc
endfunction
nnoremap <buffer> <F5> :call TSC()<CR>

" 创建 tsconfig
cnoreabbrev <buffer> tsc :e tsconfig.json<CR>i{"compilerOptions": {"module": "ES6","target": "ES6","sourceMap": false,"strict": true,"noEmitOnError": true}}<ESC>

